﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Cms.Web.CmsSystem.SysModules.TabPage
{
    public partial class Wptlayout : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string id = EntLib.Request.GetString("id");
                BLL.TabPage bll = new BLL.TabPage();
               Model.Sys_Tabpage model= bll.GetById(id, false);
               if (model != null && !String.IsNullOrEmpty(model.Layout))
               {
                   LitContent.Text = model.Layout;
                   HasContent = true;
               }
               else {
                   LitContent.Text = "<div id=\"pagecontent\"></div>";
               }
            }
        }
        private bool _hascontent = false;
        public bool HasContent { get { return _hascontent; } set { _hascontent = value; } } 
    }
    
}
